package com.redwood.report.netNew;

import android.app.Activity;

import com.redwood.report.common.Constant;
import com.redwood.report.entity.ServiceResult;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by daiye on 2016/11/10 0010.
 */

public class NetHelper {
    public static final int what = 0x01;

    /**
     * 登录接口
     */
    public static void login(Activity context, String username, String psd, final HttpListener<ServiceResult> netCallBack,  final Class<?> rspCls) {
        Map map = new HashMap();
        map.put("username", username);
        map.put("psd",psd);
        CallServer.getInstance().postForm(context, what,Constant.getBaseUrl() + "/api/User/Login", map, null, netCallBack, rspCls);
    }

}
